package values.item
{
import values.dao_ns;

/**
 * SkillBookItemValue
 * @author jliang
 *
 */
public class SkillBookItemValue extends NumbericItemValue
{
    //==========================================================================
    //  Constructor
    //==========================================================================
    public function SkillBookItemValue()
    {
        super();
    }
    //==========================================================================
    //  Properties
    //==========================================================================
    public function get skillBookTemplate():SkillBookItemTemplateValue
    {
        return SkillBookItemTemplateValue(template);
    }	
    
    public function get skillKey():String
    {
        return skillBookTemplate.skillKey;
    }
    
    public function get skillLevel():int
    {
        return skillBookTemplate.skillLevel;
    }
    
    public function get avatarType():String
    {
        return skillBookTemplate.avatarType;
    }
    
    public function get isUltimateSkillBook():Boolean
    {
        return skillBookTemplate.isUltimateSkillBook;
    }
    
    override public function get groupCount():Number
    {
        return Number.MAX_VALUE;
    }
    
    override public function get isFull():Boolean
    {
        return false;
    }
    
    override public function clone():INumbericItemValue
    {
        var vo:SkillBookItemValue = new SkillBookItemValue();
        vo.dao_ns::template = template;
        vo.initialize(params);
        vo.num = num;
        return vo;
    }
}
}